package com.sunwayworld.basemodule.business.outsource.resource;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.basemodule.business.outsource.bean.LimsOutsourceSampleBean;
import com.sunwayworld.basemodule.business.outsource.service.LimsOutsourceSampleService;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableResource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/secure/basemodule/business/outsource-samples")
public interface LimsOutsourceSampleResource extends GenericResource<LimsOutsourceSampleService, LimsOutsourceSampleBean, Long>, GenericChoosableResource<LimsOutsourceSampleService, LimsOutsourceSampleBean, Long> {

    @PostMapping("/set-result")
    JSONObject setResult(RestJsonWrapperBean wrapperBean);

    @PostMapping("/insert-multi")
    JSONObject insertMulti(RestJsonWrapperBean wrapperBean);
}
